package com.wjw.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@Data
@PropertySource(value = "classpath:application.yml")
public class OSSConfig {

    @Value("${oss-config.accessKeyID}")
    private String accessKeyId;

    @Value("${oss-config.accessKeySecret}")
    private String accessKeySecret;

    @Value("${oss-config.bucketName}")
    private String bucketName;

    @Value("${oss-config.endpoint}")
    private String endpoint;

    @Value("${oss-config.imagePrefix}")
    private String imagePrefix;
}
